﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LLServer
{
    class Server
    {
        static void Main(string[] args)
        {
            Data.Data db = new Data.Data();
            db.initialize();

            //Console.WriteLine("Faking BattleReport...");
            //Data.BattleReport br = new Data.BattleReport(10, 9, 1, 2, 10, DateTime.Now, DateTime.Now, 100, 50, 50, 25);

            //db.AddBattleReport(br);

            // test statistic
            //List<Data.BattleReport> bRep = db.GetAllBattleReports();
            //foreach (Data.BattleReport b in bRep)
            //{
            //    Console.WriteLine(b.Cpt1_id + " " + b.Cpt2_id + " " + b.Cpt1_fraction_id + " " + b.Cpt2_fraction_id + " " + b.Winner_id);
            //}

            //List<Data.FractionStats> fStat = db.GetAllFractionStats();
            //foreach (Data.FractionStats f in fStat)
            //{
            //    Console.WriteLine(f.Fraction_name + " " + f.Battles_won + " " + f.Battles_lost);
            //}

            //List<Data.CptStats> cStat = db.GetAllCaptainStats();
            //foreach (Data.CptStats c in cStat)
            //{
            //    Console.WriteLine(c.Captain_Name + " " + c.Battles_won + " " + c.Battles_lost);
            //}

            //List<Data.Captain> captains = db.GetAllCaptains();
            //foreach (Data.Captain c in captains)
            //{
            //    Console.WriteLine(c.Id + " " + c.Name + " " + c.Experience);
            //}

            Console.Read();
        }
    }
}
